package com.trade.model;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Lin Yang
 * 
 */
public class Reposity implements Serializable {
    public static final String Date_FORMAT = "yyyy-MM-DD-HH:mm:ss";
    private static final long serialVersionUID = 1L;

    private long id;
    private long goodsId;
    private double purchasePrice;
    private int purchaseNumber;
    private int outNum;
    private long operatorId;
    private long storeTime;
    private long supplierId;
    private long contractId;
    private String logisticNumber;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(long goodsId) {
        this.goodsId = goodsId;
    }

    public double getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(double purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public int getPurchaseNumber() {
        return purchaseNumber;
    }

    public void setPurchaseNumber(int purchaseNumber) {
        this.purchaseNumber = purchaseNumber;
    }

    public long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(long operatorId) {
        this.operatorId = operatorId;
    }

    public long getStoreTime() {
        return storeTime;
    }

    public String getStoreTimeStr() {
        if (storeTime > 0) {
            SimpleDateFormat f = new SimpleDateFormat(Date_FORMAT);
            return f.format(new Date(storeTime));
        } else {
            return "";
        }
    }

    public void setStoreTime(long storeTime) {
        this.storeTime = storeTime;
    }

    public long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(long supplierId) {
        this.supplierId = supplierId;
    }

    public long getContractId() {
        return contractId;
    }

    public void setContractId(long contractId) {
        this.contractId = contractId;
    }

    public String getLogisticNumber() {
        return logisticNumber;
    }

    public void setLogisticNumber(String logisticNumber) {
        this.logisticNumber = logisticNumber;
    }

	public int getOutNum() {
		return outNum;
	}

	public void setOutNum(int outNum) {
		this.outNum = outNum;
	}
    
}
